#ifndef UTILITY_H
#define UTILITY_H
#include "GlobalHeader.h"
#include "NodePoint.h"
#include "xercesc/util/PlatformUtils.hpp"
#include "xercesc/dom/DOM.hpp"
#include "xercesc/parsers/XercesDOMParser.hpp"
#include "xercesc/util/XMLString.hpp"
XERCES_CPP_NAMESPACE_USE
#define DOMDocument XERCES_CPP_NAMESPACE::DOMDocument

#include <sstream>

/************************************************************************/
/* provide static methods                                                                     */
/************************************************************************/

class Utility
{
public:
	Utility(void);
	~Utility(void);

public:
	static bool InitDataFromXML(string fileName, vector<NodePoint>& GlobalNodesTable);
	static string ConvertNumberToString(float nodeNum);

private:
	static bool ParseWithXerces(const DOMNode* inNode, vector<NodePoint>& table);

public:
	static bool isDataLoaded;
};


#endif